import {createRouter, createWebHashHistory} from "vue-router";

// 配置路由
const routes = [
    {
        path: '/',
        component: () => import('@/view/Home.vue')
    },
    {
        path: '/student',
        component: () => import('@/view/Student.vue')
    },
    {
        path: '/dormitory',
        component: () => import('@/view/Dormitory.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router